import axios from "./axios";
export  const login = (pamas)=> axios.post('/user/login',pamas)
export const batch = (pamas)=> axios.post('/batch/query',pamas)
export const passVcode = ()=> axios.get('/user/vCodeForUpdatePassword')
export const updetePasd = (pamas)=> axios.post('/user/updatePassword',pamas)
export  const roleList = (pamas)=> axios.get('/rlist/get',pamas)
export  const delroleList = (pamas)=> axios.get('/rlist/del',pamas)
export  const roletreeList = (pamas)=> axios.post('/uplus/gett',pamas)
//添加角色
export  const addRole = (pamas)=> axios.post('/rlist/add',pamas)
//修改角色对话框数据
export  const updroleList = (pamas)=> axios.get('/rlist/getid',pamas)
//修改
export  const updatadrole = (pamas)=> axios.post('/rlist/modify',pamas)
//id获取用户数据
export  const fproleIdList = (pamas)=> axios.get('/uplus/getid',pamas)
//获取用户数据
export  const fproleList = (pamas)=> axios.get('/uplus/get',pamas)
//修改用户数据
export  const Cupdatarole = (pamas)=> axios.post('/uplus/modify',pamas)

// 首页侧边栏
export const uplus = (pamas)=> axios.post('/uplus/gett',pamas)

// 批次线
export const batchAll = (pamas)=> axios.get('/batch/get',pamas)
export const batchQuery = (pamas)=> axios.post('/batch/query',pamas)
export const batchAdd = (pamas)=> axios.post('/batch/add',pamas)
export const batchModify = (pamas)=> axios.post('/batch/modify',pamas)
export const batchDel = (pamas)=> axios.post('/batch/del',pamas)

// 一分一段
export const fractionAll = (pamas)=> axios.get('/fraction/get',pamas)
export const fractionQuery = (pamas)=> axios.post('/fraction/query',pamas)
export const fractionAdd = (pamas)=> axios.post('/fraction/add',pamas)
export const fractionModify = (pamas)=> axios.post('/fraction/modify',pamas)
export const fractionDel = (pamas)=> axios.get('/fraction/del',pamas)

// 院校投档分数线
export const fileAll = (pamas)=> axios.get('/file/get',pamas)
export const fileQuery = (pamas)=> axios.post('/file/query',pamas)
export const fileAdd = (pamas)=> axios.post('/file/add',pamas)
export const fileModify = (pamas)=> axios.post('/file/modify',pamas)
export const fileDel = (pamas)=> axios.get('/file/del',pamas)


// 校园列表
export const getList = (pamas) => axios.get('/list/get',pamas)
export const getQueryList = (pamas) => axios.post('/list/query',pamas)
export const editList = (pamas) => axios.post('/list/modify',pamas)
export const deletList = (pamas) => axios.get('/list/del',pamas)
export const addList = (pamas) => axios.post('/list/add',pamas)

// 分数线
export const admissionList = (pamas) => axios.get('/admission/get',pamas)
export const addAdmissionList = (pamas) => axios.post('/admission/add',pamas)
export const editAdmissionList = (pamas) => axios.post('/admission/modify',pamas)
export const queryAdmissionList = (pamas) => axios.post('/admission/query',pamas)
export const delAdmissionList = (pamas) => axios.get('/admission/del',pamas)


// specialty请求
export const specialtyList = (pamas) => axios.get('major/get',pamas)
export const findInfo = (pamas) => axios.post('/major/query',pamas)
export const addInfo = (pamas) => axios.post('/major/add',pamas)
export const delInfo = (pamas) => axios.get('/major/del',pamas)
export const editInfo = (pamas) => axios.post('/major/modify',pamas)
//专业列表id查询数据
export const idFindInfo = (pamas) => axios.get('/major/getid',pamas)
// user请求
// 用户列表 id查询数据
export const idFindUser = (pamas) => axios.get('/auser/getid',pamas)
export const userList = (pamas) => axios.get('/auser/get',pamas)
export const findUser = (pamas) => axios.post('/auser/query',pamas)
export const delUser = (pamas) => axios.get('/auser/del',pamas)
export const editUser = (pamas) => axios.post('/auser/modify',pamas)
// manager请求
export const managerList = (pamas) => axios.get('/uplus/get',pamas)
// 管理用户列表 id查询数据
export const idFindManager = (pamas) => axios.get('/uplus/getid',pamas)
export const findManager = (pamas) => axios.post('/uplus/query',pamas)
export const addManager = (pamas) => axios.post('/uplus/add',pamas)
export const editManager = (pamas) => axios.post('/uplus/modify',pamas)
export const delManager = (pamas) => axios.get('/uplus/del',pamas)